//
//  HCMineContentTableViewCell.m
//  HappyChildren
//
//  Created by WillyZhao on 2016/12/27.
//  Copyright © 2016年 WillyZhao. All rights reserved.
//

#import "HCMineContentTableViewCell.h"

@implementation HCMineContentTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.noVIPLabel.textColor = YBKRGBCOLOR(201, 50, 78, 1);;
}

-(void)setCellModel:(NSArray *)data indexPath:(NSIndexPath *)indexPath{
   
    self.promptLine.backgroundColor = YBKRGBCOLOR(241, 241, 241, 1);
    if (indexPath.section == 0 && indexPath.row == 1) {
        
        self.noVIPLabel.hidden = NO;
    }
    else {
    
        self.noVIPLabel.hidden = YES;
    }
    
    if (indexPath.section == 0) {
        
        if (indexPath.row == 0) {
            
            self.promptIMG.image = [UIImage imageNamed:data[0][0]];
            self.promptLabel.text = data[0][1];
        }else if (indexPath.row == 1){
            
            self.promptIMG.image = [UIImage imageNamed:data[1][0]];
            self.promptLabel.text = data[1][1];
        }else if(indexPath.row == 2){
            
            self.promptIMG.image = [UIImage imageNamed:data[2][0]];
            self.promptLabel.text = data[2][1];
        }else if (indexPath.row == 3) {
        
            self.promptIMG.image = [UIImage imageNamed:data[3][0]];
            self.promptLabel.text = data[3][1];
        }
        else if (indexPath.row == 4){
            self.promptIMG.image = [UIImage imageNamed:data[6][0]];
            self.promptLabel.text = data[7][1];
        }
        else {
        
            self.promptIMG.image = [UIImage imageNamed:data[7][0]];
            self.promptLabel.text = data[8][1];
        }
    }else if (indexPath.section == 1) {
        if (indexPath.row == 0) {
            
            self.promptIMG.image = [UIImage imageNamed:data[4][0]];
            self.promptLabel.text = data[4][1];
        }else if (indexPath.row == 1) {
            
            self.promptIMG.image = [UIImage imageNamed:data[5][0]];
            self.promptLabel.text = data[5][1];
        }else{
            
            self.promptIMG.image = [UIImage imageNamed:data[6][0]];
            self.promptLabel.text = data[6][1];
        }
    }else{
        if (indexPath.row == 0) {
           
            self.promptIMG.image = [UIImage imageNamed:data[5][0]];
            self.promptLabel.text = data[5][1];
        }else if (indexPath.row == 1) {
            
            self.promptIMG.image = [UIImage imageNamed:data[6][0]];
            self.promptLabel.text = data[6][1];
        }
    }}

@end
